package info.pigflying;

public class TestOddity {

	/**
	 * @modified by
	 * @Description: odd number include negetive value
	 * @param args
	 */
	public static void main(String[] args) {
		int oddity = -3;
		boolean odd = isOdd(oddity);
		System.out.println(odd);
		boolean odd1 = isOddRight(oddity);
		System.out.println(odd1);
	}

	public static boolean isOdd(int i) {
		return i % 2 == 1;
	}

	public static boolean isOddRight(int i) {
		return (i & 1) != 0;
	}

}
